package edu.uwosh.cs342.project3;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

public class MainActivity extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        
        Button takeQuiz = (Button) findViewById(R.id.TakeQuizButton);
        takeQuiz.setOnClickListener(new View.OnClickListener() {
        	public void onClick(View v){
        		startActivity(new Intent("android.intent.action.QUIZLIST"));
        	}
        		
        });
        
        Button viewQuizesButton = (Button) findViewById(R.id.viewQuizesButton);
        viewQuizesButton.setOnClickListener(new View.OnClickListener() {
			
			public void onClick(View v) {
				startActivity(new Intent("android.intent.action.VIEWSCORES"));
				
			}
		});
    }
    
}